/*FILE UPDATE INFO**************************************************************
 * Author   : PURESUN
 * Update   : 2024-01-01
 * Info     : vaacum library
 * Version  : 1.0.0
 ******************************************************************************/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __VAACUM_H__
#define __VAACUM_H__

/* Includes ------------------------------------------------------------------*/
#include "puresun_type.h"

/* Exported macro ------------------------------------------------------------*/
#define DEFAULT_VAACUM_BAUD 9600

/* Exported typedef ----------------------------------------------------------*/

typedef struct __vaacum_t
{
    double value;
    byte adr;
    int8_t digital;  // unit: 0.1, 00 = 0.0, 99 = 9.9
    int8_t pow;      // unit: 1, from -10 to +10, normal = +5
} vaacum_t;

/* Exported types ------------------------------------------------------------*/

/* Exported constants --------------------------------------------------------*/

/* Exported variables --------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/
void vaacum_init(vaacum_t *vaacum, byte adr);
void vaacum_analyze(vaacum_t *vaacum);

#endif /* __VAACUM_H__ */

/************************ (C) COPYRIGHT PURESUN *****END OF FILE***************/
